﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.Customers>" %>
<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="CRM.Resourses" %>


 
<table >
        <tr>
            <td>
                <table style="padding: 10px; margin: 10px; ">
                    <tr class="customerBorder">
                        <th><%:Resourses.customerCustomerNumber%></th><td style="border: 1px solid #C8C8C8; width: 150px;"><%: Html.DisplayFor(model => model.SequentialNumber) %></td><th style="padding-left: 20px;"><%:CRM.Resourses.Resourses.customerSAPnumber%></th><td style=" border: 1px solid #C8C8C8; width: 150px;"><%: Html.DisplayFor(model => model.NumberInSAP) %></td>
                    </tr>
                     <tr class="customerBorder">
                        <th><%:Resourses.customerCustomerName%></th><td style="border: 1px solid #C8C8C8;"><%: Html.DisplayFor(model => model.Name) %></td><th style="padding-left: 20px;"><%:CRM.Resourses.Resourses.customerByDelegation%></th><td style="border: 1px solid #C8C8C8;"><%: Html.DisplayFor(model => model.CustomerClassificationsProfineName)%></td>
                    </tr >
                    <tr class="customerBorder">
                        <th><%:Resourses.customerManager%></th><td style="border: 1px solid #C8C8C8;"><%: Html.DisplayFor(model => model.Manager)%></td><th style="padding-left: 20px;"><%:CRM.Resourses.Resourses.customerByBuisiness%></th><td style="border: 1px solid #C8C8C8;"><%: Html.DisplayFor(model => model.CustomerClassificationsByBusinessName) %></td>
                    </tr>
                    <tr class="customerBorder">
                        <th><%:Resourses.customerRegion%></th><td style="border: 1px solid #C8C8C8;"><%: Html.DisplayFor(model => model.ProfineRegionNameLocalized) %></td><th style="padding-left: 20px;"><%:CRM.Resourses.Resourses.customerByTurnover%></th><td style="border: 1px solid #C8C8C8;"><%: Html.DisplayFor(model => model.CustomerClassificationsTurnoverName) %></td>
                    </tr>
                      <tr>
                        <th><%:Resourses.customerStartWorking%></th><td><%: Html.DevExpress().DateEdit(
                            settings => {
                                settings.Name = "DateStartProfineRUS";
                                settings.Properties.DisplayFormatString = "Y";
                                           
                            }
                        ).Bind(Model.DateStartProfineRUS).GetHtml() %></td>
                        <th style="padding-left: 20px;"><%:Resourses.IsActive%></th>
                                               
                        <td id="checkbox"><%:
                                         Html.DevExpress().CheckBox(settings =>
                                                                        {
                                                                            settings.Name = "IsActive";
                                                                        }).Bind(Model.IsActive).GetHtml()%></td>

                    </tr>   
                </table>
            </td>
        </tr>
       <%-- <tr>
            <td>
                <table class="СustomerProfile">
                    <tr>
                        <th><%:Resourses.customerSalesDistribution%></th>
                        <td>
                            <%Html.RenderAction("GetDistributionChanels", "Customers",Model); %>
                        </td>
                        <td>График</td>
                    </tr>
                    <tr>
                        <th><%:Resourses.customerProductProtfolio%></th>
                        <td>
                            <% Html.RenderAction("GetGeneral_ProductPortfolio", "Customers", Model); %>
                        </td><td>График</td>
                    </tr>
                </table>    
            </td>
        </tr>--%>
       
    </table>